﻿@model Wheeler.Web.ViewModels.TestResultViewModel
@using Wheeler.Web.Utility;
@using Wheeler.Common.Extensions;

@{
    //bool _IsPrint = WebUtil.GetQueryStringValue("Printable").ToBoolean();     
    String pageTitle = "Print Certificate";
    //if(_IsPrint && Model != null && Model.Count > 0){
    //    pageTitle = String.Format("Test Result of {0}", Model[0].Vehicle.RegistrationNo);
    //}
    ViewBag.Title = Html.GetPageTitle(pageTitle);
    ViewData[AppConstants.ViewDataKeys.SELECTED_MENU] = OperatorMenu.TestResults;
    //bool _HasSaved = ViewData.HasSaved();

    ViewData[AppConstants.ViewDataKeys.PRINT_MODE] = true;
    Layout = "~/Views/Shared/_LayoutPrint.cshtml";    
}

@Html.Partial("_EditZGL", Model)
    
@section PageHeadSection
{
    <style type="text/css">
        @@media print{@page {size: landscape; margin:0.2in;}}
    </style>
}

@section JavaScriptPlaceHolder
{
    <script language="javascript" type="text/javascript">
        function ShowPrintPopUp(testResultID) {
            
        }
    </script>
}

